uploadArtifact

suspend fun uploadArtifact(name: String, files: List<String>, rootDirectory: String, continueOnError: Boolean = true, retentionDays: Int? = null): UploadResponse
suspend fun uploadArtifact(name: String, files: List<Path>, rootDirectory: Path, continueOnError: Boolean = true, retentionDays: Int? = null): UploadResponse

Uploads an artifact

Parameters

name

the name of the artifact, required

files

a list of absolute or relative paths that denote what files should be uploaded

rootDirectory

an absolute or relative file path that denotes the root parent directory of the files being uploaded

continueOnError

whether the upload should continue if there is an error in a part. Failed parts will be reflected in the UploadResponse.

retentionDays

How long to hold the artifact. If null (default), defaults to the repository setting. Can be between 1 and the repository max (which by default is 90)